<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\models\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
$this->title = 'Users';
$this->params['breadcrumbs'][] = $this->title;
$this->registerJsFile('@web/js/setHeight.js',['depends'=>['app\assets\AppAsset']]);
?>
<div class="box">
    <div class="speaking-content-index">
        <div class="main"><!--右侧内容-->
            <div class="cont">
                <div class="title">网站概况</div>
                <div class="details">
                    <div class="details_operation clearfix">
                        <div class="bui_select">
<!--                                                    <input type="button" value="添&nbsp;&nbsp;加" class="add">-->
                            <?php //Html::a('添加', ['create'], ['class' => 'btn add']) ?>
                        </div>
                        <div class="fr">
                            <div class="text">
                                <span>日期：</span>
                                <div class="bui_select">
                                    <select name="" id="" class="select">
                                        <option value="1"><?= date("Y-m-d "); ?></option>
                                    </select>
                                </div>
                            </div>
                            <div class="text">
                                <span></span>
                                <div class="bui_select">
                                    <select name="" id="" class="select">
                                        <option value="1">Life without a friend is death.</option>
                                    </select>
                                </div>
                            </div>
                            <div class="text">
                                <span></span>
                                <!--                            <input type="text" value="" class="search">-->
                            </div>
                        </div>
                    </div>
                    <table class="table" cellspacing="0" cellpadding="0">
                        <thead>
                        </thead>
                        <tbody>
                        <tr>
                            <td><h3><?=Html::encode($this->title)?></h3></td>
                        </tr>
                        <tr>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'user_id',
            'name',
            'email:email',
            'photo',
            'source',
            // 'openid',
            // 'unionid',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>